package com.pinyoumei.service;

import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import com.pinyoumei.pojo.TbOrder;

@RequestMapping("/order")
public interface OrderService {
	
	@RequestMapping("/update")
	public String update(@RequestParam("orderId")Long orderId,@RequestParam("payId")String payId,@RequestParam("status")String status);
	
	/**
	 * 根据购物车添加订单
	 * @return
	 */
	@RequestMapping("/add")
	public String add(@RequestBody TbOrder order);
	
	/**
	 * 根据userId从redis中获取购物车
	 * @return
	 */
	@RequestMapping("/getCartList4userId")
	public String getCartList4userId(@RequestParam("userId") String userId);


}
